package com.wrupple.muba.widget.client.control.binder;


/**
 * 
 * Maps a map to a map so you can map it
 * 
 * @author japi
 */
public interface Widgetter<T> {

	/**
	 * Adds support for a new {@link DesktopBlockCreator}
	 * 
	 * @param id
	 *            The new WidgetCreator id
	 * @param widgetCreator
	 *            the Widget Creator
	 */
	public void add(String id, T widgetCreator);

	/**
	 * Instantiates a new WIdget on run-time
	 * 
	 * @param id
	 *            id of the Widget Creator
	 * @return new Instance of the widget
	 */
	public T get(String id);


}
